package cn.lingnan.controller;

import cn.lingnan.dao.OrderDao;
import cn.lingnan.entity.DdList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("order")
public class OrderProviderController {

    @Autowired
    private OrderDao orderDao;

    @GetMapping("findOrderLimit")
    public List<DdList> findOrderLimit(){
        List<DdList> orderLimit = orderDao.findOrderLimit();
        return orderLimit;
    }

}
